﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EProp extends Object
    {
        public var __value:int;
        public static const _EPropEquip:int = 0;
        public static const _EPropDrug:int = 1;
        public static const _EPropGiftBag:int = 2;
        public static const _EPropPet:int = 3;
        public static const _EPropMount:int = 4;
        public static const _EPropMagic:int = 5;
        public static const _EPropPetEquip:int = 6;
        public static const _EPropMountEquip:int = 7;
        public static const _EPropProp:int = 8;
        public static const _EPropActive:int = 9;
        public static const _EPropSpriteEquip:int = 10;
        public static const _EPropPetTotem:int = 13;
        public static const _EPropFashionClothesEquip:int = 14;
        public static const _EPropFashionWingEquip:int = 15;
        public static const _EPropFashionWeaponEquip:int = 16;
        public static const _EPropFashionFightSoulEquip:int = 17;
        public static const _EPropFashionFightMethodEquip:int = 18;
        public static const _EPropFashionDragonSoulEquip:int = 19;
        public static const _EPropFlower:int = 20;
        public static const _EPropGodHeadEquip:int = 21;
        public static const _EPropPet2Equip:int = 22;
        public static const _EPropRune:int = 23;
        public static const _EPropFashionHolyBookEquip:int = 24;
        public static const _EPropFashionWarShieldEquip:int = 25;
        public static const _EPropFashionMonsterSoulEquip:int = 26;

        public function EProp(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : EProp
        {
            return new EProp(param1);
        }// end function

        public static function __read(param1:SerializeStream) : EProp
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 27)
            {
                throw new MarshalException();
            }
            return EProp.convert(_loc_2);
        }// end function

    }
}
